import com.bwie.assist.AssistApp;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.net.URL;
import java.util.UUID;


/**
 * @ClassName SearchMsg
 * @Description TODO
 * @Author 李奉武
 * @Motto 逆水行舟, 不进则退
 * @Date 2022/3/26 10:10
 * @Version 1.0
 */
@SpringBootTest(classes = AssistApp.class)
@RunWith(SpringRunner.class)
public class SearchMsg {

    @Test
    public void findmsg() throws Exception {
        String url="https://sn.lianjia.com/ershoufang/co32/";
        Document parse = Jsoup.parse(new URL(url),3000);
        Elements ul = parse.getElementsByTag("ul");
        System.out.println(ul.html());
    }

    @Test
    public void randomId(){
        System.out.println(UUID.randomUUID().toString().replaceAll("-", ""));
    }
}
